package com.zhipu.balance.ui.home.system

import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import com.zhipu.balance.R
import com.zhipu.balance.databinding.ActivitySystemSettingBinding
import com.zhipu.balance.ui.BaseActivity
import com.zhipu.balance.ui.vm.home.revise.ReviseModel
import com.zhipu.balance.ui.vm.home.system.SystemSettingViewModel
import com.zhipu.balance.utils.InitializeUtils


/**
 *
 */
class SystemSettingActivity :BaseActivity<ActivitySystemSettingBinding>(){


    //VM
    var systemSettingViewModel: SystemSettingViewModel? = null

    override fun initCreate() {
        super.initCreate()
        InitializeUtils.AppComponent()?.doInjectionMain(this)
        systemSettingViewModel = ViewModelProvider(this, viewModelFactory)[SystemSettingViewModel::class.java]
    }



    /**
     * 初始化根布局
     *
     * @return 布局layout的id
     */
    override fun initContentView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_system_setting
    }

    override fun initView() {
        super.initView()

        binding.viewModel = systemSettingViewModel

    }



}